import { post, del, put, get } from '@/utils/request'

const menu = {
  createMenu: data => post('/menu', data),
  deleteMenu: id => del(`/menu/${id}`),
  getMenu: params => get('/menu', params),
  updateMenu: (id, data) => put(`/menu/${id}`, data)
}
export default menu
